home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 1-Reference / User Groups DB / User Groups.res / User Groups.res.rsrc / 4DTE_15051 < prev    next >
Text File  |  1990-04-04  |  540b  |  18 lines

  1. Modkeys(Var1)
  2.  
  3. Var1 is of type Integer.
  4.  
  5. This external returns in Var1 the state of the 4 keyboard modifier keys when the external was called.
  6. Be sure to initialize Var1 BEFORE using it in the external call!
  7.  
  8. 256 - Command key down
  9. 512 - Shift key down
  10. 1024 - Caps lock key down
  11. 2048 - Option key down
  12.  
  13. (multiple keys will return additive results, eg. cmd+shift=256+512=768.)
  14.  
  15. To use, place in the During portion of the layout proc & call when you want to check the modifier keys.
  16.  
  17. From Sneakers Software, Inc.
  18. By Paul Greenman [71211,3456]